<template>
    <div id="left">
        <el-row class="tac">
  <el-col :span="24">
    <el-menu
      default-active="2"
      class="el-menu-vertical-demo"
      @open="handleOpen"
      @close="handleClose"
      background-color="#2F4050"
      text-color="#fff"
      active-text-color="#ffd04b">
      <el-submenu index="1">
        <template slot="title">
          <i class="el-icon-user-solid"></i>
          <span>人员管理</span>
        </template>
        <el-menu-item-group>
          <!-- <template slot="title">分组一</template> -->
          <el-menu-item index="1-1" style="min-width:150px">人员列表</el-menu-item>
          <el-menu-item index="1-2" style="min-width:150px">人员新增</el-menu-item>
        </el-menu-item-group>
      </el-submenu>
      <el-submenu index="2">
        <template slot="title">
          <i class="el-icon-s-order"></i>
          <span>日记管理</span>
        </template>
        <el-menu-item-group>
          <el-menu-item index="2-1" style="min-width:150px">日记列表</el-menu-item>
          <el-menu-item index="2-2" style="min-width:150px">新增日记</el-menu-item>
        </el-menu-item-group>
      </el-submenu>
      <el-submenu index="3">
        <template slot="title">
          <i class="el-icon-s-platform"></i>
          <span>系统管理</span>
        </template>
        <el-menu-item-group>
          <el-menu-item index="3-1" style="min-width:150px">系统配置</el-menu-item>
          <el-menu-item index="3-2" style="min-width:150px">权限管理</el-menu-item>
        </el-menu-item-group>
      </el-submenu>
      <!-- <el-menu-item index="2">
        <i class="el-icon-menu"></i>
        <span slot="title">日志管理</span>
      </el-menu-item>
      <el-menu-item index="3" disabled>
        <i class="el-icon-document"></i>
        <span slot="title">系统设置</span>
      </el-menu-item> -->
    </el-menu>
  </el-col>
</el-row>
    </div>
</template>
<script>
export default {
    name: 'TzxLeft',
    methods: {
      handleOpen(key, keyPath) {
        console.log(key, keyPath);
      },
      handleClose(key, keyPath) {
        console.log(key, keyPath);
      }
    }
}
</script>
<style>
#left{
    position: absolute;
    top:50px;
    left: 0px;
    width:10%;
    height:100%;
    background-color:#2F4050;
    /* margin-top: 5px; */
}
</style>